package com.veltri.JDroid;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class WebViewActivity extends Activity {

	// declare webview layout
	WebView mWebView;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// set view to webview
		setContentView(R.layout.webview);

		// initialize webview element
		mWebView = (WebView) findViewById(R.id.webview);

		// load HTML into webview and set title bar to title of article
		String summary = getIntent().getStringExtra("HTML_RESPONSE");
		mWebView.loadData(summary, "text/html", "utf-8");
		setTitle(getIntent().getStringExtra("ARTICLE_TITLE"));

	}
}